package com.ymh.spring.aspectj.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import com.ymh.spring.aspectj.Audience;

@Configuration
@EnableAspectJAutoProxy//启用AspectJ自动代理
@ComponentScan(basePackages="com.ymh.spring.aspectj")
public class ConcertConfig {
	
	
	@Bean//声明Audience bean
	public Audience audience(){
		return new Audience();
	}

}
